Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根据表名表达式匹配来过滤相应的DML操作 #4537

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

suman-lee
Copy link
Contributor

实际数据同步过程中只需要对部分表按照dml操作过滤,其它的表不需要过滤。去除了以下配置来对dml操作进行一刀切方式的过滤。
canal.instance.filter.dml.insert = false
canal.instance.filter.dml.update = false
canal.instance.filter.dml.delete = false
新增以下配置来进行表名匹配的方式进行DML操作过滤:

table regex for insert-dml

canal.instance.filter.dml.insert.regex =

table regex for update-dml

canal.instance.filter.dml.update.regex =

table regex for delete-dml

canal.instance.filter.dml.delete.regex =

@agapple
Copy link
Member

agapple commented Dec 23, 2022

改动需要考虑兼容性,继续保留canal.instance.filter.dml.insert/update/delete的相关参数,如果有设置regex则优先级更高

做一下老版本参数兼容后,可以考虑合并MR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants